<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>内边距</title>
<style type="text/css">
.border{border:5px solid #ccc;}
img{
	padding:80px;
	padding-bottom:0;}
p{padding:5%;}

</style>
</head>

<body>
<img class="border" src="yeshu.png" alt="内边距"/>
<p class="border">段落内边距为父元素宽度的5%。</p>
</body>
</html>
